From: Cosimo Cecchi Date: Thu, 12 Jul 2012 23:54:41 +0000 (-0400) Subject: shell-global: remove unused shell_global_maybe_gc() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6345 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e82fe14f0098d6cfdd71a6a2c7d15dd15083b882;p=gnome-shell.git shell-global: remove unused shell_global_maybe_gc() It's not used anywhere, and we're removing the manual garbage collection invocations anyway. https://bugzilla.gnome.org/show_bug.cgi?id=679832 --- diff --git a/src/shell-global.c b/src/shell-global.c index 10fb0b35e..f467e3484 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1206,20 +1206,6 @@ shell_global_gc (ShellGlobal *global) JS_GC (context); } -/** - * shell_global_maybe_gc: - * @global: A #ShellGlobal - * - * Start a garbage collection process when it would free up enough memory - * to be worth the amount of time it would take - * https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC - */ -void -shell_global_maybe_gc (ShellGlobal *global) -{ - gjs_context_maybe_gc (global->js_context); -} - static void shell_global_on_gc (GjsContext *context, ShellGlobal *global) diff --git a/src/shell-global.h b/src/shell-global.h index 4d92995c9..1c25c0453 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -87,7 +87,6 @@ void shell_global_get_pointer (ShellGlobal *global, /* JavaScript utilities */ void shell_global_gc (ShellGlobal *global); -void shell_global_maybe_gc (ShellGlobal *global); typedef struct { guint glibc_uordblks;